/*
 * @Author: NtyAaron
 * @Date: 2021-04-21 18:17:14
 * @LastEditors: NtyAaron
 * @LastEditTime: 2021-04-27 13:08:53
 * @Description: file content
 * @FilePath: \dwq\pages\check\guangZhouToKowloon\guangZhouToKowloon.js
 */
import { getRailwayList } from '../../../api/checkRailway/checkRailway'
import { _t } from '../../../i18n/base'
Page({
  data: {
    gzTokowloon: '',
    lang: {},
  },
  async getRailwayList(e) {
    let { result } = await getRailwayList({ language: e, type: 1 })
    this.setData({
      gzTokowloon: result[0],
    })
  },
  onLoad() {
    let lang = wx.getStorageSync('lang')
    this.getRailwayList(lang)
    this.setData({
      lang: _t(),
    })
    wx.setNavigationBarTitle({
      title: this.data.lang['广九直通车'],
    })
  },
})
